﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Data.Entity;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using RetailManagement.Models;

namespace RetailManagement.Controllers
{
    public class VoucherController : Controller
    {
        //
        // GET: /Voucher_/

        RetailManagementEntities db = new RetailManagementEntities();
        
        public ViewResult List_Voucher()
        {
            return View(db.list_voucher);
        }
        public ViewResult Details_Voucher(int id)
        {
            var product = db.list_voucher.Where(x => x.Product_ID == id);
            return View(product);
        }
    }
}
